Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: extend wait_for_response to accept list #52

Merged

Conversation

mikejgray
Copy link
Contributor

Adds feature parity with called MessageWaiter and allows for cases where the response is not simply "test.message.response"

#hacktoberfest

@mikejgray mikejgray force-pushed the feature/wait-for-response-parity branch from 0120113 to 0a7cc1d Compare October 3, 2023 01:59
@mikejgray
Copy link
Contributor Author

Not sure why the tests are failing to run, but:

❯ pytest unittests/test_client.py
==================================================================== test session starts ====================================================================
platform darwin -- Python 3.10.9, pytest-7.4.2, pluggy-1.2.0
rootdir: /Users/Mike/Documents/coding/VoiceAssistants/ovos-bus-client
plugins: cov-4.1.0, anyio-3.7.1
collected 29 items                                                                                                                                          

unittests/test_client.py .............................                                                                                                [100%]

==================================================================== 29 passed in 0.97s =====================================================================

@mikejgray mikejgray requested a review from JarbasAl October 3, 2023 02:04
@NeonDaniel
Copy link
Member

Not sure why the tests are failing to run, but:

❯ pytest unittests/test_client.py
==================================================================== test session starts ====================================================================
platform darwin -- Python 3.10.9, pytest-7.4.2, pluggy-1.2.0
rootdir: /Users/Mike/Documents/coding/VoiceAssistants/ovos-bus-client
plugins: cov-4.1.0, anyio-3.7.1
collected 29 items                                                                                                                                          

unittests/test_client.py .............................                                                                                                [100%]

==================================================================== 29 passed in 0.97s =====================================================================
ERROR: Could not find a version that satisfies the requirement build (from versions: none)
ERROR: No matching distribution found for build

Seems like an issue with PyPI or the GHA runner...

@codecov
Copy link

codecov bot commented Oct 5, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (6616569) 53.58% compared to head (ad0e05b) 54.33%.
Report is 2 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #52      +/-   ##
==========================================
+ Coverage   53.58%   54.33%   +0.74%     
==========================================
  Files          14       14              
  Lines        1073     1084      +11     
==========================================
+ Hits          575      589      +14     
+ Misses        498      495       -3     
Files Coverage Δ
ovos_bus_client/client/waiter.py 82.75% <100.00%> (+3.59%) ⬆️
ovos_bus_client/version.py 0.00% <0.00%> (ø)
ovos_bus_client/client/client.py 37.61% <75.00%> (+3.18%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Adds feature parity with called MessageWaiter and allows for cases where the response is not simply "test.message.response"
@mikejgray mikejgray force-pushed the feature/wait-for-response-parity branch from 103fda0 to 26a99b5 Compare October 9, 2023 04:07
@mikejgray mikejgray force-pushed the feature/wait-for-response-parity branch from 26a99b5 to ad0e05b Compare October 9, 2023 04:10
@JarbasAl JarbasAl added the enhancement New feature or request label Oct 9, 2023
@JarbasAl JarbasAl merged commit 7530f7f into OpenVoiceOS:dev Oct 9, 2023
6 checks passed
@mikejgray mikejgray deleted the feature/wait-for-response-parity branch October 13, 2023 04:50
This was referenced Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants